package org.PISS.controller.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created by admin on 26.12.13.
 */

@Entity
public class Fritz {
    public static int LEVEL_CRITICAL=4;
    public static int LEVEL_HIGH=3;
    public static int LEVEL_NORMAL=2;
    public static int LEVEL_LOW=1;

    public static int SUBJECT_PRODUCT=1;
    public static int SUBJECT_FITTER=2;
    public static int SUBJECT_SUPPLIER=3;

    @Id
    @GenericGenerator(name="generator", strategy="increment")
    @GeneratedValue(generator="generator")
    private long fritzID;
    @Column
    private long consignmentID;
    @Column
    private String information;
    @Column
    private int fritzLevel;
    @Column
    private int subject;

    public long getFritzID() {
        return fritzID;
    }

    public void setFritzID(long fritzID) {
        this.fritzID = fritzID;
    }

    public long getConsignmentID() {
        return consignmentID;
    }

    public void setConsignmentID(long consignmentID) {
        this.consignmentID = consignmentID;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public int getFritzLevel() {
        return fritzLevel;
    }

    public void setFritzLevel(int fritzLevel) {
        this.fritzLevel = fritzLevel;
    }

    public int getSubject() {
        return subject;
    }

    public void setSubject(int subject) {
        this.subject = subject;
    }
}
